package com.regentsoft.cloudback.operateAdmin.service;

import java.util.List;
import java.util.Map;

import com.regentsoft.cloudback.base.BaseService;
import com.regentsoft.cloudback.base.Pager;
import com.regentsoft.cloudback.operateAdmin.entity.Activation;
import com.regentsoft.cloudback.operateAdmin.entity.CompanyName;
import com.regentsoft.cloudback.vo.QueryActivationVo;

/**
 * @author czd
 * @version 1.0
 * @date 2017年11月29日
 */
public interface ActivationService extends BaseService<Activation, java.lang.String> {
	/**
	 * 检查激活码是否存在
	 * @param randomCode
	 * @return
	 */
	boolean findByCode(String randomCode);
	/**
	 * 添加激活码
	 * @param code
	 * @param companyId
	 * @param capacity
	 * @param note
	 */
	void addActivation(String codeId,String code, String companyId, Integer capacity, String note) throws Exception;

    /**
     * 模糊查询企业code
     * @param companyId
     * @return
     */
    List<CompanyName> queryCompanyId(String companyId);
    
    Pager findPageList(Integer pageNumber, Integer pageSize) throws Exception;
    
	List<QueryActivationVo> queryByPageCode(Map<String, Object> map) throws Exception;
	
	boolean deleteActivation(String code) throws Exception;
	
	QueryActivationVo queryActivationDetail(String code);
}
